const path = require('path');
const express = require('express');


//构建
const ProjectRouter = express.Router();

//引入控制器
const ProjectController = require(path.join(__dirname,"../controllers/ProjectController"));


//主页面
ProjectRouter.get('/projectList',ProjectController.projectList);

//添加
ProjectRouter.get('/projectAdd',ProjectController.projectAdd);

//添加提交
ProjectRouter.post('/projectAdd',ProjectController.projectAddForm);

//编辑
ProjectRouter.get('/projectEdit',ProjectController.projectEdit);

//编辑提交
ProjectRouter.post('/projectEdit',ProjectController.projectEditForm);

// 课程删除页面
ProjectRouter.get('/projectDelete',ProjectController.projectDelete);


module.exports = ProjectRouter;